﻿<%@ Page Title="" Language="C#" MasterPageFile="~/main.master" AutoEventWireup="true" CodeFile="checkOut.aspx.cs" Inherits="checkOut" %>

<asp:Content ID="Content1" ContentPlaceHolderID="head" Runat="Server">
</asp:Content>
<asp:Content ID="Content2" ContentPlaceHolderID="ContentPlaceHolder1" Runat="Server">
<style type="text/css">
    #shop1
    {
        margin-left:220px;
        margin-top:20px;
        }
</style>
<div id="shop1">
     <asp:GridView ID="GridView1" runat="server" AutoGenerateColumns="False" 
         style="text-align: center">
            <Columns>
                <asp:BoundField DataField="OrderID" HeaderText="订单号" />
                <asp:BoundField DataField="BookID" HeaderText="商品编号" />
                <asp:BoundField DataField="BookSyn" HeaderText="商品简介" />
                <asp:BoundField DataField="HotPrice" HeaderText="单价" />
                <asp:BoundField DataField="Number" HeaderText="数量" />
                <asp:BoundField DataField="OrderDate" HeaderText="创建日期" />
            </Columns>
        </asp:GridView>
    <asp:DetailsView ID="DetailsView1" runat="server" AutoGenerateRows="False" 
        Height="50px" Width="384px">
        <Fields>
            <asp:TemplateField HeaderText="收货人姓名：">
                <ItemTemplate>
                    <asp:TextBox ID="TextBox5" runat="server" Text='<%# Bind("RealName") %>'></asp:TextBox>
                </ItemTemplate>
                <EditItemTemplate>
                    <asp:TextBox ID="TextBox1" runat="server" Text='<%# Bind("RealName") %>'></asp:TextBox>
                </EditItemTemplate>
                <InsertItemTemplate>
                    <asp:TextBox ID="TextBox1" runat="server" Text='<%# Bind("RealName") %>'></asp:TextBox>
                </InsertItemTemplate>
            </asp:TemplateField>
            <asp:TemplateField HeaderText="联系电话：">
                <ItemTemplate>
                    <asp:TextBox ID="TextBox6" runat="server" Text='<%# Bind("Phone") %>'></asp:TextBox>
                </ItemTemplate>
                <EditItemTemplate>
                    <asp:TextBox ID="TextBox2" runat="server" Text='<%# Bind("Phone") %>'></asp:TextBox>
                </EditItemTemplate>
                <InsertItemTemplate>
                    <asp:TextBox ID="TextBox2" runat="server" Text='<%# Bind("Phone") %>'></asp:TextBox>
                </InsertItemTemplate>
            </asp:TemplateField>
            <asp:TemplateField HeaderText="详细地址：">
                <ItemTemplate>
                    <asp:TextBox ID="TextBox7" runat="server" Text='<%# Bind("Address") %>'></asp:TextBox>
                </ItemTemplate>
                <EditItemTemplate>
                    <asp:TextBox ID="TextBox3" runat="server" Text='<%# Bind("Address") %>'></asp:TextBox>
                </EditItemTemplate>
                <InsertItemTemplate>
                    <asp:TextBox ID="TextBox3" runat="server" Text='<%# Bind("Address") %>'></asp:TextBox>
                </InsertItemTemplate>
            </asp:TemplateField>
            <asp:TemplateField HeaderText="备注">
                <ItemTemplate>
                    <asp:TextBox ID="TextBox8" runat="server" Height="85px" TextMode="MultiLine" 
                        Width="222px"></asp:TextBox>
                </ItemTemplate>
                <EditItemTemplate>
                    <asp:TextBox ID="TextBox4" runat="server"></asp:TextBox>
                </EditItemTemplate>
                <InsertItemTemplate>
                    <asp:TextBox ID="TextBox4" runat="server"></asp:TextBox>
                </InsertItemTemplate>
            </asp:TemplateField>
        </Fields>
    </asp:DetailsView>
    <asp:Button ID="Button1" runat="server" onclick="Button1_Click" Text="确认购买" 
         style="font-family: 仿宋; font-size: large; color: #FFFFFF; background-color: #003366" />
         </div>
</asp:Content>

